package com.huadao.cart_ccs.greendao.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import java.util.Date;

@Entity
public class Project implements Serializable{
    private static final long serialVersionUID = -4282981477245388105L;

    @Id
    private Long projectId;
    private Date startTime;
    private Date endTime;
    //是否终结，人为的终结项目
    private boolean isTerminate;
//    //阶段,保存当前阶段，恢复项目的时候就知道进行到哪个阶段了
//    @Convert(converter = ExperimentStageConvert.class, columnType = String.class)
//    private ExperimentStage experimentStage;

    //是否完成罐装
    private boolean isFinishCollect;

    @Generated(hash = 1959275519)
    public Project(Long projectId, Date startTime, Date endTime,
            boolean isTerminate, boolean isFinishCollect) {
        this.projectId = projectId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.isTerminate = isTerminate;
        this.isFinishCollect = isFinishCollect;
    }
    @Generated(hash = 1767516619)
    public Project() {
    }


    public Long getProjectId() {
        return this.projectId;
    }
    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }
    public Date getStartTime() {
        return this.startTime;
    }
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public Date getEndTime() {
        return this.endTime;
    }
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    public boolean getIsTerminate() {
        return this.isTerminate;
    }
    public void setIsTerminate(boolean isTerminate) {
        this.isTerminate = isTerminate;
    }
    public boolean getIsFinishCollect() {
        return this.isFinishCollect;
    }
    public void setIsFinishCollect(boolean isFinishCollect) {
        this.isFinishCollect = isFinishCollect;
    }

}
